local jianji = fk.CreateSkill{
    name = "heg__jianji",
}

Fk:loadTranslationTable{
  ["heg__jianji"] = "谏计",
  [":heg__jianji"] = "出牌阶段限一次，你可以令一名其他角色摸一张牌并展示之，然后其可以使用该牌。",
  ["#heg__jianji-invoke"] = "谏计：你可以使用这张牌",
  ["#heg__jianji-prompt"] = "谏计：你可令一名其他角色摸一张牌并展示之，且其可以使用之",

  ["$heg__jianji1"] = "锦上添花，不如雪中送炭。",
  ["$heg__jianji2"] = "密计交于将军，可解燃眉之困。",
}

jianji:addEffect("active",{
    anim_type = "support",
    card_num = 0,
    target_num = 1,
    prompt = "#heg__jianji-prompt",
    can_use = function(self, player)
      return player:usedSkillTimes(jianji.name, Player.HistoryPhase) == 0
    end,
    card_filter = Util.FalseFunc,
    target_filter = function(self, player, to_select, selected)
      return #selected == 0 and to_select ~= player
    end,
    on_use = function(self, room, effect)
      local target = effect.tos[1]
      local id = target:drawCards(1, jianji.name)[1]
      target:showCards(id)
      room:delay(300)
      if not target.dead and table.contains(target:getCardIds("h"), id) then
        room:askToUseRealCard(target, {
          pattern = {id},
          skill_name = jianji.name,
          prompt = "#heg__jianji-invoke",
          extra_data = {
          bypass_times = true,
          extraUse = true,
        }
        })
      end
    end,
})

return jianji